package com.zf.canal.handler.impl;

import com.zf.canal.entity.Student;
import com.zf.canal.handler.RowDataHandler;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;

/**
 * student表 行数据处理器
 * @author Zhou Feng
 */
@Component
public class StudentRowDataHandler extends RowDataHandler<Student> {
    public static final Logger logger = LoggerFactory.getLogger(StudentRowDataHandler.class);
    @Override
    public void insert(Student rowData) {
        logger.info("Insert: {}", rowData);
    }

    @Override
    public void update(Student before, Student after) {
        logger.info("Before Update: {}", before);
        logger.info("After Update: {}", after);
    }

    @Override
    public void delete(Student rowData) {
        logger.info("Delete: {}", rowData);
    }
}
